<?php
namespace app\app\controller\soft;
use app\app\Appbase;
use app\admin\model\SystemSoftwarePackage;

class System extends Appbase
{
	
	/**
    * 获取系统配置
    * /app/soft/System/getConfig
    * @access public
    * @return  json
    */
	public function getConfig(){
		try {
			//TODO 最低提现
	        $min_withdraw = (float)getSystem('money_brokerage_withdraw_min');
			//返回
			return $this->ReSucess(compact('min_withdraw') );	
		} catch (\Exception $e) {
			return $this->ReError($e->getMessage());	
		}
	}
	
	
	/**
    * 获取系统配置
    * /app/soft/System/getSoftPack
    * @access public
    * @return  json
    */
	public function getSoftPack(){
		try {
			$result = SystemSoftwarePackage::getSoftPack();
			return $this->ReSucess($result);	
		} catch (\Exception $e) {
			return $this->ReError($e->getMessage());	
		}
	}
	
}
